﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DatabaseLibrary;

namespace _08220
{
 
    class Theatre
    {
        TheatreDatabase db = new TheatreDatabase();
        public int AddPlay(string inTitle, string inDescription)
        {
          return  db.AddPlay(inTitle, inDescription);
        }
        public bool DeletePlay(int inPlayId)
        {
            return db.DeletePlay(inPlayId);
        }
        public List<Play> GetPlays()
        {
            return db.GetPlays();
        }
        public int AddPerformanceToPlay(int inPlayId, DateTime inPerformanceTime)
        {
            return db.AddPerformanceToPlay(inPlayId, inPerformanceTime);
        }
        public bool DelePerformance(int inPerformanceId)
        {
            return db.DeletePerformance(inPerformanceId);
        }
        public List<Performance> GetPerformancesForPlay(int inPlayId)
        {
            return db.GetPerformancesForPlay(inPlayId);
        }
        public List<Customer> GetCustomers()
        {
            return db.GetCustomers();
        }
        public int AddCustomer(Customer inCustomer)
        {
            return db.AddCustomer(inCustomer);
        }
    }
}
